package com.lvjunxiong.serviceinterface.tongxun;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

/**
 * 山西书海传媒科技有限公司
 * 吕俊雄
 * 2019年2月18日
 */
public class Sh_groupname {
    private int id;
    private String groupName;

    public Sh_groupname() {
    }

    public Sh_groupname(int id, String groupName) {
        this.id = id;
        this.groupName = groupName;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getGroupName() {
        return groupName;
    }

    public void setGroupName(String groupName) {
        this.groupName = groupName;
    }

    @Override
    public String toString() {
        return this.getGroupName() + ":" + this.getId();

    }

    @SuppressWarnings("serial")
    public static List<Sh_groupname> getAInitSh_groupnameList() {
        return new ArrayList<Sh_groupname>() {
            {
                add(new Sh_groupname(1, "A"));
                add(new Sh_groupname(2, "B"));
                add(new Sh_groupname(3, "C"));
                add(new Sh_groupname(4, "D"));
                add(new Sh_groupname(5, "E"));
                add(new Sh_groupname(6, "F"));
                add(new Sh_groupname(7, "G"));
                add(new Sh_groupname(8, "H"));
                add(new Sh_groupname(9, "I"));
                add(new Sh_groupname(10, "J"));
                add(new Sh_groupname(11, "K"));
                add(new Sh_groupname(12, "L"));
                add(new Sh_groupname(13, "M"));
                add(new Sh_groupname(14, "N"));
                add(new Sh_groupname(15, "O"));
                add(new Sh_groupname(16, "P"));
                add(new Sh_groupname(17, "Q"));
                add(new Sh_groupname(18, "R"));
                add(new Sh_groupname(19, "S"));
                add(new Sh_groupname(20, "T"));
                add(new Sh_groupname(21, "U"));
                add(new Sh_groupname(22, "V"));
                add(new Sh_groupname(23, "W"));
                add(new Sh_groupname(24, "X"));
                add(new Sh_groupname(25, "Y"));
                add(new Sh_groupname(26, "Z"));
            }
        };
    }
    public static void main(String[] args) {
        List<Sh_groupname> list_ = Sh_groupname.getAInitSh_groupnameList();
        Collections.sort(list_, new GroupnameComparetor());
        System.out.println(list_);
    }
}